package com.gosling.cloudspace.common.annotation;

import io.swagger.annotations.ApiModelProperty;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 对数据字典的字段需要补齐0的进行处理，对需要删掉0的进行remove
 * @author lihonglin
 * @date 2023/4/24 9:31
 */
@Target({FIELD})
@Retention(RUNTIME)
@Inherited
@Documented
public @interface TrimAndDic {

    String ZERO = "0";

    @ApiModelProperty("list按照逗号分割 ,1,2,")
    String LIST = "list";

    @ApiModelProperty("正常")
    String NORMAL = "normal";

    String dictionary() default "";

    String type() default NORMAL;

    String fieldName() default "";
}
